Skip to content

QemuHCK: add --aio-native/--aio-threads CLI options#1029

Merged
kostyanf14 merged 1 commit into
HCK-CI:masterfrom
elizashurov:VIRTWINKVM-2256
Jul 15, 2026
Merged

QemuHCK: add --aio-native/--aio-threads CLI options#1029
kostyanf14 merged 1 commit into
HCK-CI:masterfrom
elizashurov:VIRTWINKVM-2256

Conversation

@elizashurov

Copy link
Copy Markdown
Contributor

Adds CLI flags and setup-manager support for aio=native/aio=threads on
virtual disks. Both modes also set cache=none.

@elizashurov elizashurov requested a review from kostyanf14 July 13, 2026 12:15

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces support for configuring the drive AIO state (--aio-native and --aio-threads) for virtual disks, including CLI option parsing, validation to prevent conflicting configurations, and propagation of these settings to the platform options. Feedback is provided regarding a missing update to the merge! method in HLKPlatformClientsOptions to ensure the new drive_aio_state property is correctly merged.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread lib/models/hlk_platform.rb Outdated
Comment thread lib/engines/functest/functest.rb Outdated

Models::HLKPlatform.from_json_file(platform_json, logger)
platform = Models::HLKPlatform.from_json_file(platform_json, logger)
platform.clients_options.drive_aio_state = options.test.drive_aio_state

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think about something like --fs-test-image-format but for aio. Is there any reason to make drive_aio_state as a state and add it to the client? What do you think?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed, I reworked this

Comment thread lib/setupmanagers/qemuhck/states.json Outdated
"drive_aio_state": {
"native": {
"drive_cache_options": [
",cache=none",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why force cache = none?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This matches the QEMU command from the Kar tests logs. And according to info from the internet, it is also recommended to use cache=none with aio=native

@elizashurov elizashurov force-pushed the VIRTWINKVM-2256 branch 2 times, most recently from 8a9e657 to 348364d Compare July 14, 2026 06:56
Add --aio-native/--aio-threads CLI flags to set disk AIO mode.
Both modes force cache=none.

Signed-off-by: Elizabeth Ashurov <eashurov@redhat.com>
@elizashurov elizashurov changed the title Virtwinkvm 2256 QemuHCK: add --aio-native/--aio-threads CLI options Jul 14, 2026
@kostyanf14 kostyanf14 merged commit db24c5a into HCK-CI:master Jul 15, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants